package com.example.vue20220402.vo;

import lombok.Data;


public enum Constant {

    USERLIST("获取用户列表成功"),
    OK(200,"成功"),
    ERROR(500,"失败");


    private Integer code;
    private String desc;

    Constant(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    Constant( String desc) {
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
